package com.huawei.java.main.deployentity;


import com.huawei.java.main.inputentity.VisualMachine;

/**
 * 已处理的请求
 */
public class DeployVM extends VisualMachine {
    /**
     * @param id
     * @param vm
     */
    public DeployVM(long id, VisualMachine vm,DeployServer deployServer,String node) {
        super(vm.getVMType(),vm.getCPU(),vm.getMemory(),vm.getNodeType());
        this.id=id;
        this.deployServer=deployServer;
        this.node=node;
    }
    private long id;
    private DeployServer deployServer;//部署的服务器
    private String node;//A、B、AB（双节点）

    @Override
    public String toString() {
        return "DeployVM{" +
                "id=" + id +
                ", deployServer=" + deployServer +
                ", node='" + node + '\'' +
                '}';
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public DeployServer getDeployServer() {
        return deployServer;
    }

    public void setDeployServer(DeployServer deployServer) {
        this.deployServer = deployServer;
    }

    /**
     *
     * @return A、B、AB（双节点）
     */
    public String getNode() {
        return node;
    }

    public void setNode(String node) {
        this.node = node;
    }
}
